HTML实现可编辑下拉框 | 您所在的位置:网站首页 › html input框换行 › HTML实现可编辑下拉框 |
前言 在HTML中下拉框是不能进行编辑的,我们可通过Select下拉框和input实现commbox功能 思想: 通过绝对定位实现input覆盖Select通过change事件实现数据的单向绑定 效果图 代码 可编辑下拉框 /*input css*/ .iInput{ position: absolute; width: 99px; height: 16px; left: 1px; top: 2px; border-bottom: 0px; border-right: 0px; border-left: 0px; border-top: 0px; } 2017 2016 2015 2014 |
CopyRight 2018-2019 实验室设备网 版权所有 |